package com.xiaotu.code.service.quartz;

import java.io.Serializable;
import java.util.List;

import com.xiaotu.code.model.quartz.QuartzCronExpression;
import com.xiaotu.code.system.ServiceException;

/**
 * 定时器时间配置.
 * 
 * @author chenxiangrong
 */

public interface QuartzCronExpressionService extends Serializable {

	public static final Integer STOP_STATUS = 0;
	public static final Integer RUN_STATUS = 1;

	/**
	 * 获取所有定时器时间配置.
	 * 
	 * @return
	 * @throws ServiceException
	 */
	public List<QuartzCronExpression> getAllQuartzCronExpression() throws ServiceException;

	/**
	 * 重新设置定时器时间配置.
	 * 
	 * @param qce
	 * @throws ServiceException
	 */
	public void reSetScheduleJob(QuartzCronExpression qce) throws ServiceException;

	/**
	 * 获取定时器时间配置.
	 * 
	 * @param beanName
	 * @return
	 * @throws ServiceException
	 */
	public QuartzCronExpression getQuartzCronExpression(String beanName) throws ServiceException;

}
